package com.vic.enums;

/**
 * @Author: Vic Ly
 */
public enum ResponseCodeEnum {
    code_200(200,"请求成功"),
    code_404(404,"请求资源不存在"),
    code_600(600,"请求参数错误"),
    code_601(601,"信息已经存在"),
    code_500(500,"服务器返回错误,请联系管理员"),
    ;
    private Integer code;
    private String msg;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
